import request from '@/utils/request'

// 查询勘察设计阶段列表
export function listSurveyPhase(query) {
  return request({
    url: '/business/surveyPhase/list',
    method: 'get',
    params: query
  })
}

// 查询勘察设计阶段详细
export function getSurveyPhase(designId) {
  return request({
    url: '/business/surveyPhase/' + designId,
    method: 'get'
  })
}

// 新增勘察设计阶段
export function addSurveyPhase(data) {
  return request({
    url: '/business/surveyPhase',
    method: 'post',
    data: data
  })
}

// 修改勘察设计阶段
export function updateSurveyPhase(designId, data) {
  return request({
    url: '/business/surveyPhase/' + designId,
    method: 'put',
    data: data
  })
}

// 删除勘察设计阶段
export function delSurveyPhase(designId) {
  return request({
    url: '/business/surveyPhase/' + designId,
    method: 'delete'
  })
}
